home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_26471.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  50 lines

  1. -- card: 26471 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: john@felix.UUCP (John Gilbert)
  12.  
  13. Date: 2 Mar 88 00:44:25 GMT
  14.  
  15. >> My problem is that the button contains the following script: (in part)
  16.  
  17. >> repeat with the number of cards of this bkgnd
  18.  
  19. >> ...do the checking
  20.  
  21. >> end repeat
  22.  
  23. >Sometimes you have to put a quantity into a container all of its own to use
  24. >it in a repeat statement.   Try something like:
  25.  
  26. >put the number of cards of this background into NumbCards
  27. >repeat with NumbCards ...
  28.  
  29. >end repeat
  30.  
  31. Several folks have pointed out that "the number of cards in this background"
  32. may not be supported yet.  I have not confirmed this, and it may very well
  33. be true.  However, there is a more basic problem in the original example
  34. not yet mentioned:
  35.  
  36. The "repeat with..." is to be used with a varible counter the same way
  37. a for loop is traditionally used.  It might help to change the repeat loop
  38. to:
  39.  
  40.   repeat for <value>
  41.  
  42.   end repeat
  43.  
  44. to see if this produces the desired results.
  45.  
  46.  
  47.  
  48. -- part contents for background part 45
  49. ----- text -----
  50. Re: "Repeat with...." question